<?php
/***********************************************************************
 * @package    IvanEngine
 * @subpackage Core
 * @author     Ivan <ivanzx@msn.com>
 * @created    2010-05-12
 ***********************************************************************/
if(defined("IVANENGINE_CORE_COMMON"))
	die("Redefinition macro in :".__FILE__."(".__LINE__.")");
define("IVANENGINE_CORE_COMMON", true);

define(M_DS, DIRECTORY_SEPARATOR);
define(M_CORE_PATH, dirname(__FILE__).M_DS);
define(M_WARP, chr(13));
define(M_DOC_DIR, str_replace('\\', M_DS, 
    str_replace('/', M_DS, $_SERVER['DOCUMENT_ROOT'].M_DS)));

require_once (dirname(__FILE__).'/Object.php');
require_once (dirname(__FILE__).'/Singleton.php');
require_once (dirname(__FILE__).'/Callback.php');
require_once (dirname(__FILE__).'/EventSingleton.php');
require_once (dirname(__FILE__).'/Exception/Exception.php');
require_once (dirname(__FILE__).'/Exception/Exception404Error.php');
require_once (dirname(__FILE__).'/Exception/ExceptionRuntime.php');
require_once (dirname(__FILE__).'/Exception/ExceptionInvalidArgument.php');
require_once (dirname(__FILE__).'/STL/Vector.php');
require_once (dirname(__FILE__).'/STL/Map.php');
require_once (dirname(__FILE__).'/STL/String.php');
require_once (dirname(__FILE__).'/Helper/Helper.php');

?>